package com.uubx.vo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @Author wyy
 * @Date 2020/12/28 10:36
 * @Version 1.0
 */
@ApiModel(description = "保单相关的数据")
public class PolicyVo {

    //开始序号
    @ApiModelProperty(value = "开始序号",required=true)
    private Integer startIndex;

    //分页大小
    @ApiModelProperty(value = "分页大小",required=true)
    private Integer pageSize;
    /**
     * 保单id
     */
    @ApiModelProperty(value = "保单id")
    @JsonIgnore
    private Long id;
    /**
     * 保单号码
     */
    @ApiModelProperty("保单号码")
    private Long number;

    /**
     * 车牌号码
     */
    @ApiModelProperty("车牌号码")
    private String carNumber;

    /**
     * 车架号码
     */
    @ApiModelProperty("车架号码")
    private String chassisNumber;


    /**
     * 险种
     */
    @ApiModelProperty("险种")
    private String insuranceName;

    /**
     * 险种状态  0为交强险,1为商业险
     */
    @ApiModelProperty("险种状态  0为交强险,1为商业险")
    private Integer type;

    /**
     *  车主姓名
     */
    @ApiModelProperty("车主姓名")
    private String name;

    /**
     *  电话号码
     */
    @ApiModelProperty("电话号码")
    private String phone;
    /**
     * 保单起始时间
     */
    @ApiModelProperty("保单起始时间")
    private Date startTime;

    /**
     * 保单结束时间
     */
    @ApiModelProperty("保单结束时间")
    private Date endTime;
    /**
     * 保单状态 0为失效,1为退保,2为保障中
     */
    @ApiModelProperty("保单状态 0为失效,1为退保,2为保障中")
    private Integer status;

    public PolicyVo() {

    }

    public PolicyVo(Integer startIndex, Integer pageSize, Long id, Long number, String carNumber, String chassisNumber, String insuranceName, Integer type, String name, String phone, Date startTime, Date endTime, Integer status) {
        this.startIndex = startIndex;
        this.pageSize = pageSize;
        this.id = id;
        this.number = number;
        this.carNumber = carNumber;
        this.chassisNumber = chassisNumber;
        this.insuranceName = insuranceName;
        this.type = type;
        this.name = name;
        this.phone = phone;
        this.startTime = startTime;
        this.endTime = endTime;
        this.status = status;
    }

    public Integer getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(Integer startIndex) {
        this.startIndex = startIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getChassisNumber() {
        return chassisNumber;
    }

    public void setChassisNumber(String chassisNumber) {
        this.chassisNumber = chassisNumber;
    }

    public String getInsuranceName() {
        return insuranceName;
    }

    public void setInsuranceName(String insuranceName) {
        this.insuranceName = insuranceName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}